﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.db2
{
	// Token: 0x020001DE RID: 478
	public class TDb2LeaveStmt : TCustomDb2Stmt
	{
		// Token: 0x0600101F RID: 4127 RVA: 0x0030C9DC File Offset: 0x0030ABDC
		public TDb2LeaveStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdb2leavestmt;
		}

		// Token: 0x06001020 RID: 4128 RVA: 0x0030C9F0 File Offset: 0x0030ABF0
		internal override void buildsql()
		{
		}

		// Token: 0x06001021 RID: 4129 RVA: 0x0030C9F2 File Offset: 0x0030ABF2
		internal override void clear()
		{
		}

		// Token: 0x06001022 RID: 4130 RVA: 0x0030C9F4 File Offset: 0x0030ABF4
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06001023 RID: 4131 RVA: 0x0030C9FB File Offset: 0x0030ABFB
		internal override void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x17000300 RID: 768
		// (get) Token: 0x06001024 RID: 4132 RVA: 0x0030C9FD File Offset: 0x0030ABFD
		public override TObjectName LabelName
		{
			get
			{
				return this.labelName;
			}
		}

		// Token: 0x06001025 RID: 4133 RVA: 0x0030CA08 File Offset: 0x0030AC08
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TStubStmtSqlNode tstubStmtSqlNode = (TStubStmtSqlNode)this.rootNode;
			this.labelName = tstubStmtSqlNode.ObjectName;
			return 0;
		}

		// Token: 0x06001026 RID: 4134 RVA: 0x0030CA40 File Offset: 0x0030AC40
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06001027 RID: 4135 RVA: 0x0030CA50 File Offset: 0x0030AC50
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400138F RID: 5007
		private TObjectName labelName;
	}
}
